﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PocketEngine.Engine;
using Exocortex.OpenGL;


namespace PocketEngine
{
    public partial class PocketGLControl : OpenGLControl
    {
        public PocketGLControl() : base()
        {
  
        }
        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            if(pEngine.Screen.Info==null) pEngine.Screen.Info = new ScreenParameters();

            pEngine.Screen.Info.Width = Width;
            pEngine.Screen.Info.Height = Height;
            pEngine.Screen.Transform2D();
        }
        public void InitEngine()
        {
           
            pEngine.Screen.InitControl(Width, Height);
        }
    }
}
